diff --git a/plugin/klash4/klash_part.cpp b/plugin/klash4/klash_part.cpp
--- a/plugin/klash4/klash_part.cpp
+++ b/plugin/klash4/klash_part.cpp
@@ -27,6 +27,7 @@
 #include <QByteArray>
 #include <QMenu>
 #include <QTimer>
+#include <unistd.h>
 
 #include <klibloader.h>
 #include <kdebug.h>
